package main.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;

import org.hibernate.validator.constraints.NotEmpty;
import org.springframework.stereotype.Component;
import org.hibernate.annotations.Cache;
import org.hibernate.annotations.CacheConcurrencyStrategy;

@Component
//@Cache(usage = CacheConcurrencyStrategy.READ_WRITE)
@Entity(name="module")
public class ModuleVO extends BaseVO {
	/**
	 * 2016-10-24-pm
	 */
	private static final long serialVersionUID = 1L;
	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	@Column(name = "module_ID", unique = true, nullable = true)
	private Long moduleID;
	@NotEmpty
	@Column(name="module_name", unique=true, nullable = true, length=64)
	private String moduleName;
	@NotEmpty
	@Column(name="module_desc", nullable = true, length=255)
	private String moduleDesc;
	
	public Long getModuleID() {
		return moduleID;
	}
	public void setModuleID(Long moduleID) {
		this.moduleID = moduleID;
	}
	public String getModuleName() {
		return moduleName;
	}
	public void setModuleName(String moduleName) {
		this.moduleName = moduleName;
	}
	public String getModuleDesc() {
		return moduleDesc;
	}
	public void setModuleDesc(String moduleDesc) {
		this.moduleDesc = moduleDesc;
	}
	public static long getSerialversionuid() {
		return serialVersionUID;
	}

}
